package com.crm.pojo;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the SALE_CHANCE database table.
 * 
 */
@Entity
@Table(name="SALE_CHANCE")
@NamedQuery(name="SaleChance.findAll", query="SELECT s FROM SaleChance s")
public class SaleChance implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(initialValue = 1, allocationSize = 1,name="SALE_CHANCE_CHID_GENERATOR", sequenceName="SEQ1")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SALE_CHANCE_CHID_GENERATOR")
	@Column(name="CH_ID")
	private Long chId;

	private String asterisk;

	@Column(name="CHANCE_THEME")
	private String chanceTheme;

	@Column(name="CLIENT_ID")
	private BigDecimal clientId;

	@Column(name="CONTACT_ID")
	private BigDecimal contactId;

	@Temporal(TemporalType.DATE)
	@Column(name="EXPECT_DATE")
	@JSONField(format="yyyy-MM-dd")
	private Date expectDate;

	@Column(name="EXPECT_MONEY")
	private BigDecimal expectMoney;

	@Temporal(TemporalType.DATE)
	@Column(name="FIND_TIME")
	@JSONField(format="yyyy-MM-dd")
	private Date findTime;

	@Column(name="INTENT_RPODUCT")
	private String intentRpoduct;

	@Column(name="OUTLINE_NEED")
	private String outlineNeed;

	private String possibility;

	private String priority;

	private String remarks;

	@Column(name="SALE_CHANCE_IS_DEL")
	private String saleChanceIsDel;

	private String stage;

	@Column(name="STAGE_REMAIN")
	private BigDecimal stageRemain;

	@Column(name="\"STATE\"")
	private String state;

	private String succedaneum;

	@Column(name="\"TYPE\"")
	private String type;

	@Temporal(TemporalType.DATE)
	@Column(name="UPDATE_DATE")
	@JSONField(format="yyyy-MM-dd")
	private Date updateDate;

	@Column(name="USER_ID")
	private BigDecimal userId;

	public SaleChance() {
	}

	public Long getChId() {
		return this.chId;
	}

	public void setChId(Long chId) {
		this.chId = chId;
	}

	public String getAsterisk() {
		return this.asterisk;
	}

	public void setAsterisk(String asterisk) {
		this.asterisk = asterisk;
	}

	public String getChanceTheme() {
		return this.chanceTheme;
	}

	public void setChanceTheme(String chanceTheme) {
		this.chanceTheme = chanceTheme;
	}

	public BigDecimal getClientId() {
		return this.clientId;
	}

	public void setClientId(BigDecimal clientId) {
		this.clientId = clientId;
	}

	public BigDecimal getContactId() {
		return this.contactId;
	}

	public void setContactId(BigDecimal contactId) {
		this.contactId = contactId;
	}

	public Date getExpectDate() {
		return this.expectDate;
	}

	public void setExpectDate(Date expectDate) {
		this.expectDate = expectDate;
	}

	public BigDecimal getExpectMoney() {
		return this.expectMoney;
	}

	public void setExpectMoney(BigDecimal expectMoney) {
		this.expectMoney = expectMoney;
	}

	public Date getFindTime() {
		return this.findTime;
	}

	public void setFindTime(Date findTime) {
		this.findTime = findTime;
	}

	public String getIntentRpoduct() {
		return this.intentRpoduct;
	}

	public void setIntentRpoduct(String intentRpoduct) {
		this.intentRpoduct = intentRpoduct;
	}

	public String getOutlineNeed() {
		return this.outlineNeed;
	}

	public void setOutlineNeed(String outlineNeed) {
		this.outlineNeed = outlineNeed;
	}

	public String getPossibility() {
		return this.possibility;
	}

	public void setPossibility(String possibility) {
		this.possibility = possibility;
	}

	public String getPriority() {
		return this.priority;
	}

	public void setPriority(String priority) {
		this.priority = priority;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getSaleChanceIsDel() {
		return this.saleChanceIsDel;
	}

	public void setSaleChanceIsDel(String saleChanceIsDel) {
		this.saleChanceIsDel = saleChanceIsDel;
	}

	public String getStage() {
		return this.stage;
	}

	public void setStage(String stage) {
		this.stage = stage;
	}

	public BigDecimal getStageRemain() {
		return this.stageRemain;
	}

	public void setStageRemain(BigDecimal stageRemain) {
		this.stageRemain = stageRemain;
	}

	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getSuccedaneum() {
		return this.succedaneum;
	}

	public void setSuccedaneum(String succedaneum) {
		this.succedaneum = succedaneum;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getUpdateDate() {
		return this.updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public BigDecimal getUserId() {
		return this.userId;
	}

	public void setUserId(BigDecimal userId) {
		this.userId = userId;
	}

}